package com.lemeng.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.lemeng.pojo.Brand;
import com.lemeng.service.CategoryBrandService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("categoryBrand")
public class CategoryBrandController {


    @Reference
    CategoryBrandService categoryBrandService;


    @GetMapping("findByCategoryIdTkMapper")
    public List<Brand> findByCategoryIdTkMapper(Integer categoryId){
        return categoryBrandService.findByCategoryIdTkMapper(categoryId);
    }
    @GetMapping("findBrandByCategoryIdByMybatisXml")
    public List<Brand> findBrandByCategoryIdByMybatisXml(Integer categoryId){
        return categoryBrandService.findBrandByCategoryIdByMybatisXml(categoryId);
    }


}
